package com.bkitmobile.kesu.android.ClassInfo;

import java.util.LinkedList;
import java.util.List;

import com.bkitmobile.kesu.android.GUI.R;
import com.bkitmobile.kesu.android.GUI.R.layout;

import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;

public class LocationsListResult extends ListActivity{
	
	List<LocationShortInfo> locsList;
	ArrayAdapter<LocationShortInfo> locsArrayAdapter;
	
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.location__find_location_main);
		init();
	}
	
	private void init(){
		locsList = receive();
		locsArrayAdapter = new LocationsListAdapter(this, locsList);
		setListAdapter(locsArrayAdapter);
	}
	
	private List<LocationShortInfo> receive(){
		LinkedList<LocationShortInfo> result = new LinkedList<LocationShortInfo>();
		//TODO: get data
		//demo
		
		
		//end demo
		
		
		return result;
	}
}
